<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>角色管理</title>
<link rel="stylesheet" type="text/css" href="/ui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/ui/themes/icon.css">
<script type="text/javascript" src="/ui/jquery.min.js"></script>
<script type="text/javascript" src="/ui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/ui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src='/js/utils/jquery.serializejson.min.js'></script>
<script type="text/javascript" src="/js/utils/crud.js"></script>
<script type="text/javascript" src="/js/utils/date.js"></script>
<script type="text/javascript">
	var name = "/permission/role";
	var columns = [ [
			{
				field : 'uuid',
				title : '编号',
				width : 100
			},
			{
				field : 'name',
				title : '名称',
				width : 100
			},
			{
				field : 'enble',
				title : '状态',
				width : 100,
				formatter:function(value, row, index){
	  		    	value = row.enble;
	  		    	if(1 == value * 1){
	  		    		return '可用';
	  		    	}
	  		    	if(0 == value * 1){
	  		    		return '禁用';
	  		    	}
				}
			},
			{
				field : 'create_name',
				title : '创建人',
				width : 100
			},
			{
				field : 'create_data',
				title : '创建时间',
				width : 100,
				formatter:function(value){
	  		    	return new Date(value).Format("yyyy-MM-dd");
	  		    }
			}] ];
</script>
</head>
<body>
	<div class="easyui-panel"
		style="padding-left: 4px; border-bottom: 0px;">
		<div style="height: 2px;"></div>
		<form id="searchForm">
			名称：<input name="name">
			状态：<select class="easyui-combobox" name="enble" style="width:80px;" editable="false">   
				    <option value="">--请选择--</option>   
				    <option value="1">可用</option>   
				    <option value="0">禁用</option>   
				</select> 
			<a  class="easyui-linkbutton" data-options="iconCls:'icon-search'" id="btnSearch" >查询</a>
			<a  class="easyui-linkbutton" data-options="iconCls:'icon-remove'" id="btnReset" >重置</a>
		</form>
		<div style="height: 2px;"></div>
	</div>
	<table id="grid"></table>

	<div id="editDlg">
		<form id="editForm">
			<input name="uuid" type="hidden">

			<table>
				<tr>
					<td>名称</td>
					<td><input name="name"></td>
				</tr>
				<tr>
					<td>状态</td>
					<td>
						<select class="easyui-combobox" name="enble" style="width:50px;" editable="false">   
						    <option value="0">禁用</option>   
						    <option value="1">可用</option>   
						</select> 
					</td>
				</tr>
			</table>
			<button id="btnSave" type="button">保存</button>
		</form>
	</div>

</body>
</html>
